/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.leboncoin.batch;

import com.leboncoin.html.ContentMining;
import com.leboncoin.http.HttpManager;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Search classifieds from various web sources, using smart web semantic algorithm
 * @author ben
 */
public class SmartSearch {
    
 	protected static final Logger logger = Logger.getLogger(DaySearch.class.getName());	
	public static void main(String[] args){
        
        String htmlSource = HttpManager.getHtmlPage("http://choraledecournon.dyndns.org/test.html");
        List<String> classifieds = ContentMining.searchClassifieds(htmlSource);
        int i = 1;
        for (String classified : classifieds) {
            logger.log(Level.INFO, "Classified {0}", i++);
            logger.info(classified);
        }
        
        
    }   
}
